package com.zzgele.qmzb.api.core;

import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.BaseMapper;
import tk.mybatis.mapper.common.ConditionMapper;
import tk.mybatis.mapper.common.IdsMapper;
import tk.mybatis.mapper.common.MySqlMapper;
import tk.mybatis.mapper.common.special.InsertListMapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 定制版MyBatis Mapper插件接口，如需其他接口参考官方文档自行添加。
 */
@Repository
public interface Mapper<T>
        extends
        BaseMapper<T>,
        ConditionMapper<T>,
        IdsMapper<T>, MySqlMapper<T>,
        InsertListMapper<T> {

        //获取列表 add by martin@20170711
        List<HashMap> getList(Map<String, Object> map);

        //更新某字段 add by martin@20170708
        int setInc(Map<String, Object> map);

        int setDec(Map<String, Object> map);

        //获取首页-关注列表 add by lcb@20170908
        List<HashMap> getIndexFollowList(Map<String, Object> map);

        //榜单-粉丝榜 add by lcb@20170908
        List<HashMap> getFansRankList();

        //榜单-土豪榜 add by lcb@20170908
        List<HashMap> getLocalTyrantRankList();

        //更新某字段 add by lcb@20170909
        int setSpe(Map<String, Object> map);

        int setTtd(Map<String, Object> map);

        int setTic(Map<String, Object> map);

        int UpdatePrivate(Map<String, Object> map);

        int UpdateBroadcast(Map<String, Object> map);


        //充值记录 add by lcb@20170911
        List<HashMap> getRechargeLogList(Map<String, Object> map);

        //直播间-粉丝贡献榜
        List<HashMap> getContributionRankList(Map<String, Object> map);
        //本月收入民票
        String  getMonthTotalTicket(Map<String, Object> map);
        //获取列表 add by jack
        List<HashMap> getForFamilyList(Map<String, Object> map);
        int getListSize(Map<String, Object> map);
}